import { ConfigManager } from "../../../com/gengine/resource/ConfigManager";
//class FGRewardsConfig
    
    export  class FGRewardsConfig
    {
        constructor()
        {
            
            if (FGRewardsConfig._instance) 
            {
                throw new Error("");
            }
            this.init();
            return;
        }

        /* internal  */init(): void
        {
            var loc1=ConfigManager.instance.getObjectByFileName("FGGameRewards.xml");
            this.write(loc1);
            return;
        }

        /* internal  */write(arg1: Object): void
        {
            this._rewards = arg1.item as Array<any>;
            return;
        }

        public FGRewardsConfig.get rewards(): Array<any>
        {
            if (!this._rewards) 
            {
                this._rewards = [];
            }
            return this._rewards;
        }

        public static get instance(): FGRewardsConfig
        {
            return FGRewardsConfig._instance;
        }

        /* internal */ /* var */_rewards: Array<any>;

        /* internal */ static /* var */_instance: FGRewardsConfig;
    }

            FGRewardsConfig._instance = new FGRewardsConfig();
        